#include "../lvgl.h"
#include "sys_status.h"
typedef struct {
    int battery_level;
    bool sim_inserted;
} SysStatus;

static SysStatus sys_status = {100, true};

void sys_status_update(void) {
    // 模拟更新
    sys_status.battery_level = (sys_status.battery_level - 1) % 100;
    sys_status.sim_inserted = (sys_status.battery_level > 10);

    lv_event_send(lv_layer_top(), LV_EVENT_VALUE_CHANGED, &sys_status);
}
